import {RouteRecordRaw} from "vue-router";
import Main from '@/views/Main.vue'

export default [
    {
        path: '/',
        component: Main,
        name: 'main',
        meta: {
            title: '首页'
        },
        redirect: {path: '/index'},
        children: [
            {
                path: 'index',
                name: 'index',
                meta: {
                    title: '首页'
                },
                component: () => import('@/views/Home/index.vue')
            },
            {
                path: 'charts',
                name: 'charts',
                meta: {
                    title: '图表'
                },
                component: () => import('@/views/Charts/index.vue')
            }
        ]
    }
] as RouteRecordRaw[]